<h2 class="group">그룹 관리 > {result->g_name} 권한관리</h2>
<div class="description">
	<ul>
		<li>{result->g_name} 그룹의 사이트 전반적인 기본 권한을 설정하는 곳입니다. </li>
		<li>게시판마다 특정한 권한을 설정하지 않는 이상 이곳에서 설정한 값에 따라 권한이 주어집니다.</li>
	</ul>
</div>
<section class="default">
	<script>
		$(function() {
			$('#group_privilege :radio').checkbox({empty:'{CFG->PATH->CSS}/images/empty.png'});
			
			$("input:radio[name='group_read'][value='{result->g_read}']").attr("checked","checked");
			$("input:radio[name='group_write'][value='{result->g_write}']").attr("checked","checked");
			$("input:radio[name='group_modify'][value='{result->g_modify}']").attr("checked","checked");
			$("input:radio[name='group_remove'][value='{result->g_remove}']").attr("checked","checked");
			$("input:radio[name='group_down'][value='{result->g_down}']").attr("checked","checked");
		});
		
		var gr = new function() {
			this.all_change = function() {
				if(confirm("{result->g_name}그룹의 권한을 모두 변경하시겠습니까?\n변경시 각 게시판 별로 설정된 권한 모두 변경됩니다.")) {
					$("#type").val(1);
					$("#group_privilege").submit();
				}
				return false;
			}
		}
	</script>
	<form name="group_privilege" id="group_privilege" method="post" action="{action}/doPrivilege">
		<input type="hidden" name="seq" value="{result->g_seq}" />
		<input type="hidden" name="type" id="type" value="0" />
		<table class="table">
			<caption>
				{result->g_name} 권한관리
			</caption>
			<colgroup>
				<col class="t_add" />
				<col />
			</colgroup>
			<tbody>
				<tr>
					<th scope="row" class="txt_right br">읽기</th>
					<td>
						<input type="radio" name="group_read" id="group_read_o" value="1" />
						<label for="group_read_o">승인</label>
						&nbsp;&nbsp;
						<input type="radio" name="group_read" id="group_read_n" value="0" />
						<label for="group_read_n">금지</label>
					</td>
				</tr>
				<tr class="odd">
					<th scope="row" class="txt_right br">쓰기</th>
					<td>
						<input type="radio" name="group_write" id="group_write_o" value="1" />
						<label for="group_write_o">승인</label>
						&nbsp;&nbsp;
						<input type="radio" name="group_write" id="group_write_n" value="0" />
						<label for="group_write_n">금지</label>
					</td>
				</tr>
				<tr>
					<th scope="row" class="txt_right br">수정</th>
					<td>
						<input type="radio" name="group_modify" id="group_modify_o" value="1" />
						<label for="group_modify_o">승인</label>
						&nbsp;&nbsp;
						<input type="radio" name="group_modify" id="group_modify_n" value="0" />
						<label for="group_modify_n">금지</label>
					</td>
				</tr>
				<tr class="odd">
					<th scope="row" class="txt_right br">삭제</th>
					<td>
						<input type="radio" name="group_remove" id="group_remove_o" value="1" />
						<label for="group_remove_o">승인</label>
						&nbsp;&nbsp;
						<input type="radio" name="group_remove" id="group_remove_n" value="0" />
						<label for="group_remove_n">금지</label>
					</td>
				</tr>
				<tr>
					<th scope="row" class="txt_right br">다운</th>
					<td>
						<input type="radio" name="group_down" id="group_down_o" value="1" />
						<label for="group_down_o">승인</label>
						&nbsp;&nbsp;
						<input type="radio" name="group_down" id="group_down_n" value="0" />
						<label for="group_down_n">금지</label>
					</td>
				</tr>
			</tbody>
		</table>
		<div class="button_area">
			<button type="button" class="accept2" onclick="gr.all_change()">모두변경</button>
			<button type="submit">변경</button>
			<button type="button" class="cancel" onclick="history.back(-1)">뒤로</button>
		</div>
	</form>
</section>